package com.songshuai.webapi.jobapi.dao.edu;

import com.songshuai.webapi.jobapi.model.edu.TpoStudentSchedule;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Auther: Administrator
 * @Date: 2018/10/31 0031 21:11
 * @Description:
 */
public interface StudentScheduleMapper {
    /**
     * 获取排课信息更改记录
     * @param begin
     * @param limit
     * @return
     */
    List<TpoStudentSchedule>getStudentScheduleByUpdateTime(@Param("begin") String begin,
                                                           @Param("end")String end,
                                                           @Param("offset") Integer offset,
                                                           @Param("size") Integer limit);


    /**
     *
     * @param begin
     * @param limit
     * @return
     */
    List<TpoStudentSchedule>getSignStatusChanges(@Param("begin") String begin,
                                                 @Param("end")String end,
                                                 @Param("offset") Integer offset,
                                                 @Param("size") Integer limit);

    /**
     * 根据课程id 获取
     * @param lessonIds
     * @return
     */
    List<TpoStudentSchedule>getStudentScheduleByLessonIds(@Param("lessonIds") List<Integer> lessonIds);

    /**
     * 根据课时单位获取课程id
     * @param beginId
     * @param lessonUnit
     * @param size
     * @return
     */
    List<Integer>selectLessonIdsByUnit(@Param("beginId") Integer beginId,
                                       @Param("lessonUnit") Integer lessonUnit,
                                       @Param("size") Integer size);

    /**
     * 官网ID
     * @param gw_id
     * @return
     */
    List<Integer>selectLessonIdsByGwId(@Param("gw_id") Long gw_id);
}
